// GPS定位装饰器
public class GPSDecorator extends FarmMachineDecorator {
    public GPSDecorator(FarmMachine farmMachine) {
        super(farmMachine);
    }

    @Override
    public void work() {
        super.work();
        addGPSFunction();
    }

    private void addGPSFunction() {
        System.out.println("GPS定位系统已启动，正在记录作业轨迹...");
    }
}